package com.bayihouse.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bayihouse.model.entity.Administer;
import com.bayihouse.model.request.administer.AdministerQueryRequest;
import com.bayihouse.model.request.administer.AdministerRegisterRequest;
import com.bayihouse.model.vo.AdministerVO;
import com.bayihouse.model.vo.LoginAdministerVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Administrator
 * @description 针对表【administer(用户)】的数据库操作Service
 * @createDate 2024-09-17 10:28:03
 */
public interface AdministerService extends IService<Administer> {


    Administer getLoginAdminister(HttpServletRequest request);

    Administer getLoginAdministerPermitNull(HttpServletRequest request);

    boolean isAdmin(HttpServletRequest request);

    boolean isAdmin(Administer Administer);

    boolean administerLogout(HttpServletRequest request);

    LoginAdministerVO getLoginAdministerVO(Administer Administer);

    AdministerVO getAdministerVO(Administer Administer);

    List<AdministerVO> getAdministerVOList(List<Administer> AdministerList);

    QueryWrapper<Administer> getQueryWrapper(AdministerQueryRequest AdministerQueryRequest);

    long administerRegister(AdministerRegisterRequest AdministerRegisterRequest);


    LoginAdministerVO administerLogin(String administerAccount, String administerPassword, HttpServletRequest request);

    Long getByUserName(String addUserName,String addUserTelephone);
}
